﻿using CallCenter.Data.Models;
using CallCenter.Security;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace CallCenter.Web.Controllers
{
    [AuthorizeCore]
    public class FeatureController : BaseController
    {
        // GET: Feature
        public ActionResult Index()
        {
            return View();
        }


        public ActionResult GetFeatures()
        {
            var featureList = this.Bridge.FeatureUtility.GetFeatures();
            return Json(featureList, JsonRequestBehavior.AllowGet);
        }


        //[HttpPut]
        //public JsonResult UpdateScratchHistory(ScratchPadViewModel model)
        //{

        //    var result = this.Bridge.ScratchUtility.UpdateCallLog(model);
        //    return Json(result, JsonRequestBehavior.AllowGet);
        //}


    }
}